import http from "../http";

export const register = (data: any) =>
  http.post("/teaching/user/register", data);

export const login = (params: any) =>
  http.get("/teaching/user/login", { params });

export const updatePassword = (data: any) =>
  http.post("/teaching/user/updatePassword", data);

export const getUserInfo = () => http.get("/teaching/user/getCurrentUser");
